{% extends "base.html" %}
{% load pagination_tags %}
{%block title%}Phillip's Eportfolio - Blog - {{year}}{{day|date}}{{month|date:"M Y"}}{%endblock%}
{%block content%}
	{% if object_list %}
		<h2>All Posts Posted {%if day%}On {{day|date}}{%endif%}{%if not day%}During {%endif%}
			{%if month%}{{month|date:"M Y"}}{%endif%}{{year}}</h2>
		{% autopaginate object_list %}
		{%endif%}
		{% for posts in object_list reversed %}
			<div id="b_content">
				<span class="b_title_text"><a href="{{ posts.get_absolute_url }}">{{posts.title}}</a></span>
				<br />
				<span class="b_date_text">Posted on {{posts.creation_date|date}} at {{posts.creation_date|time}}</span>
				<br /><br />
				<span class="b_content">
					{{posts.content|removetags:"button html body form"|safe|truncatewords_html:300}}
					<br /><br />
						<a class="b_a_text" href="{{ posts.get_absolute_url }}">More....</a>
					<br />
				</span>
				<br /><br />
			</div>
			<br />
		{% empty %}
			<h2>Sorry, but no blog entries were posted {% if year %}during {{year}}{%endif%}{% if day %}on {{day|date}}{%endif%}{% if month %}during {{month|date:"M Y"}}{%endif%}</h2>
		{% endfor %}
		{% if object_list %}
			{% paginate %}
		{%endif%}
{%endblock%}
